/*
 * File:   main.cpp
 * Author: longtran
 *
 * Created on February 4, 2011, 2:03 PM
 */

#include <QtGui/QApplication>

#include "ui/mainwindow.h"


#include "projector/projectordata.h"
#include "projector/projector.h"

int main(int argc, char *argv[]) {
    // initialize resources, if needed
    // Q_INIT_RESOURCE(resfile);

    QString pw = QString("JBMIAProjectorLink");
    QString hostname = QString("http://www.google.ca");
    QString projName = QString("Projector");
    QHostAddress hostaddress = QHostAddress(QString("142.58.56.161"));

    Projector::ProjectorData* projectorData = Projector::ProjectorData::GetInstance();
    projectorData->AddProjector(new Projector::Projector(0u, 4352u, 80u, true,
            pw, hostname, projName,
            hostaddress));
    QApplication app(argc, argv);

    // create and show your widgets here
    UISource::MainWindow mainWindow;

    mainWindow.show();
    return app.exec();
}
